#include <iostream>
#include <functional>

#include "Sever.hpp"
#include "IoService.hpp"
#include "Calculate.hpp"

int main()
{
    Scream();
    uint16_t port = 8888;

    Calculate cal;
    IoService ioService(std::bind(&Calculate::Operation, &cal, std::placeholders::_1));
    Sever sever(
        std::bind(&IoService::IoExecute, &ioService, std::placeholders::_1, std::placeholders::_2),
        port);

    sever.Init();
    sever.Loop();
    return 0;
}